from collections import Counter
import re
c = ''
with open('1.txt','r') as f:
    for i in f:
        hh=i
pattern = re.compile('{(.*?)}', re.S)
items = re.findall(pattern, hh)
print(items)
for i in items:
    c+=i

aa=Counter(c.lower())#只统计小写
#aa=Counter(c)
aa = aa.most_common()
print(aa)
for i in range(len(aa)):
    print(aa[i][0],end='')

